<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--    <div th:include="header::header"></div>-->
    <div th:replace="header::header"></div>
    <h1>HTML</h1>
    <div th:text="${price}"></div>
    <label th:text="${str}"></label>
    <p th:text="${employee.lastName}"></p>

    <p class="type" th:inline="text">姓名：[[${employee.lastName}]]</p>

    <div th:object="${employee}">
        <p th:text="*{lastName}"></p>
        <p th:text="*{age}"></p>
        <p th:text="*{email}"></p>
        <p th:text="*{gender}"></p>
    </div>

    <table style="width: 600px" border="1" cellspacing="0">
        <caption>列表</caption>
        <thead>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>邮箱</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="e : ${list}">
                <td th:text="${e.lastName}"></td>
                <td th:text="${e.age}"></td>
                <td th:text="${e.gender}==1?'男':'女'"></td>
                <td th:text="${e.email}"></td>
                <td th:if="${e.age}>35">年龄有点大</td>
                <td th:unless="${e.age}>=35">年龄有点小</td>
            </tr>
        </tbody>
    </table>
<!--    <div th:include="footer::footer"></div>-->
    <div th:replace="footer::footer"></div>
</body>
    <style type="text/css">
        .type{
            color: [[${color}]];
        }
    </style>
</html>